﻿function pageLoad() {
	$("input[id $= btSetNewPrice]").colorbox({
		inline: true,
		href: "#AddNewBillingInfoFieldset",
		transition: "elastic",
		opacity: "0.60",
		onLoad: function () {
			$('#cboxClose').remove();
		}

	});

	// Move colorbox to the Form element so that it will do a postback
	$("#colorbox, #cboxOverlay").appendTo($("form:first"));

	// Close colorbox on AJAX postback 
	Sys.WebForms.PageRequestManager.getInstance().add_endRequest(function (sender, args) {
		$.colorbox.close();
	});
}
